<?php
/*
 * harliane
 * Created on : 26 juin 2010
 * Author     : utilisateur
 * Copyright  : Harlie (c)2010
 */
 
define('DOMPDF_ENABLE_REMOTE', 1);

include_once('ReportEngine.inc.php');

ReportEngineLoader::Import ("factory.ReportEngineFactory");
ReportEngineLoader::Import ("core.default.DefaultReport");
ReportEngineLoader::Import ("core.default.DefaultReportContext");
ReportEngineLoader::Import ("engine.smarty.SmartyEngineConfig");
ReportEngineLoader::Import ("engine.dompdf.DomPdfEngineConfig");

class ReportEngineAdapter 
{
	public static function CreateReport($file)
	{
		return new DefaultReport($file);
	}
	
	public static function CreateContext()
	{
		return new DefaultReportContext();
	}
	
	public static function CreateReportEngine()
	{
		return ReportEngineFactory::CreateReportEngine(new SmartyEngineConfig(), new DomPdfEngineConfig());
	}
}
?>
